import { createRouter, createWebHashHistory } from 'vue-router'
import pages from '~pages'

const routes = [{
        path: '/',
        component: () =>
            import ('../pages/PensionCalculate/PensionCalculate.vue'),
    },
    ...pages,
    {
        path: '/:pathMatch(.*)*',
        component: () =>
            import ('../pages/404Page.vue'),
    },
]

const router = createRouter({
    history: createWebHashHistory(),
    routes,
})

export default router